<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台管理</title>
  <meta name="renderer" content="webkit"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">  
  <meta name="format-detection" content="telephone=no"> 
	<link rel="stylesheet" type="text/css" href="__STATIC__/larry_layui/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="__STATIC__/larry_layui/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="__STATIC__/larry_layui/css/global.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/larry_layui/css/main.css" media="all">
	<link rel="stylesheet" href="__STATIC__/icon/icon.css">	
	<SCRIPT LANGUAGE="JavaScript" src="__STATIC__/js/core/jquery.min.js"></SCRIPT>
	<SCRIPT LANGUAGE="JavaScript" src="__STATIC__/layer/layer.js"></SCRIPT>
</head>
<body>
<section class="larry-wrapper">
	<div class="row state-overview">
		{qb:hy name="layui_admin_index_top" where="admin_style/default/admin/index/count/a,b,c,d" val="datas" type="labelmodel" time="600"}
				{$datas}
		{/qb:hy}
	</div>
	<div class="row">
		<div class="col-lg-6">
{php}
$id=$userdb['uid'];
request()->get(['id'=>$id]);
$info=$systemMsg;
{/php}
		{qb:hy name="layui_admin_index_left" where="admin_style/layui/admin/index/model/sysinfo,echarts" val="datas" type="labelmodel" time="600"}
				{$datas}
		{/qb:hy}
		  
		</div>
		<div class="col-lg-6">

		{qb:hy name="layui_admin_index_right" where="admin_style/layui/admin/index/model/help,notice,listmember" val="datas" type="labelmodel" time="600"}
				{$datas}
		{/qb:hy}
		    
             
		</div>
	</div>

</section>

<script type="text/javascript" src="__STATIC__/larry_layui/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(['jquery','layer','element'],function(){
		window.jQuery = window.$ = layui.jquery;
		window.layer = layui.layer;
        window.element = layui.element();

       $('.panel .tools .iconpx-chevron-down').click(function(){
       	   var el = $(this).parents(".panel").children(".panel-body");
       	   if($(this).hasClass("iconpx-chevron-down")){
       	   	   $(this).removeClass("iconpx-chevron-down").addClass("iconpx-chevron-up");
       	   	   el.slideUp(200);
       	   }else{
       	   	   $(this).removeClass("iconpx-chevron-up").addClass("iconpx-chevron-down");
       	   	   el.slideDown(200);
       	   }
       })

	});
</script>



{php}
$array = @include(config('client_upgrade_edition')?:RUNTIME_PATH.'/client_upgrade_edition.php');
{/php}
<script type="text/javascript">
//检查版本更新
function check_upgrade(){
	var now_edition = "{$array.md5}";
	$.post("https://x1.php168.com/appstore/upgrade/get_edition.html?typeid={$webdb.typeid}",{
		app_edition:"{:fun('upgrade@local_edition')}",
		sys_edition:now_edition,
		domin:'{:request()->domain()}',
		appkey:'{$webdb.mymd5}'
	}).success(function(res){
		if(res.code==0){
			if(res.data.md5!=now_edition||typeof(res.data.upgrade_msg) != "undefined"){
				if(typeof(res.data.time) == "undefined"){
					return ;
				}
				//upgrade_edition = res.data.md5;
				var msg = typeof(res.data.upgrade_msg) != "undefined" ? res.data.upgrade_msg : '你的系统需要升级<br>云端更新日期:'+res.data.time;
				layer.confirm(msg, {
					title: '系统升级提醒!',
					btn : [ '马上升级', '晚点再升级' ],
					time: 6000,
					offset: 'rb',
					anim:2,
					shade: 0 //不显示遮罩 
				}, function(index) {
					window.location.href="{:url('upgrade/index')}";
				});
			}
		}
	});
}
{if $userdb['groupid']==3&&empty(config('webdb.forbid_upgrade'))} check_upgrade(); {/if}

</script>

</body>
</html>